<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>统计图表</title>
</head>
<body>
    <script>
        const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTc2MjUwOTk0MywiZXhwIjoxNzYyNTk2MzQzfQ.8FOy7tVNfLxrmWOYxv8NsYK_TRqJRh-7lLaCxkhsveo'
        const eventSource = new EventSource(`http://localhost:3000/admin/charts/stream_order?token=${token}`)
        eventSource.onmessage = function(event) {
            const data = JSON.parse(event.data)
            console.log(data,'data')
        }
    </script>
</body>
</html>